<?php


namespace App\Extensions\Actions\Document;

use App\Document;

class DocumentUploadImagePost extends DocumentUploadPost
{
    public $name = '配置图片';

    public function form()
    {
        $this->select('slug', '类型')->options(Document::slugOptions(2))->required();
        $this->file('file', '请选择文件')->required();
        $this->hidden('type', '类型')->default(2);
    }
}
